package com.hgl.utils;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;




public class Draw {
	public void drawImage() throws IOException{
		BufferedImage img=new BufferedImage(139, 48, BufferedImage.TYPE_INT_BGR);
		//画板
		Graphics g= img.getGraphics();
		g.fillRect(12, 12, 104, 20);
		ImageIO.write(img, "jpg", new File("D:/a.jpg"));
		
		System.out.println();
		
	}

}
